Micron Document
🎖️GitЯра🎖️


Displaying Raw • Download

core/navigation/src/commonMain/kotlin/org/meshtastic/core/navigation/NavigationConfig.kt 1390a3cd4f7bc55a37433d1d868e65c01678eb31 (1390a3cd) Text, 1.94 KB

T8b949e/*
* Copyright (c) 2025-2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.core.navigation

Tff7b72import T7ee787androidx.navigation3.runtime.NavKey
Tff7b72import T7ee787androidx.savedstate.serialization.SavedStateConfiguration
Tff7b72import T7ee787kotlinx.serialization.ExperimentalSerializationApi
Tff7b72import T7ee787kotlinx.serialization.modules.SerializersModule
Tff7b72import T7ee787kotlinx.serialization.modules.polymorphic
Tff7b72import T7ee787kotlinx.serialization.modules.subclassesOfSealed

T8b949e/**
* Shared polymorphic serialization configuration for Navigation 3 saved-state support. Uses sealed interface
* hierarchies so that new routes are automatically registered at compile time — no manual `subclass()` calls needed.
*/
Tf0883e@OptInTb4b4b4(Te6edf3ExperimentalSerializationApiTff7b72::Te6edf3classTb4b4b4)
Tff7b72val Te6edf3MeshtasticNavSavedStateConfig Tff7b72= Te6edf3SavedStateConfiguration Tb4b4b4{
Te6edf3serializersModule Tff7b72= Te6edf3SerializersModule Tb4b4b4{
Te6edf3polymorphicTb4b4b4(Te6edf3NavKeyTff7b72::Te6edf3classTb4b4b4) Tb4b4b4{
Te6edf3subclassesOfSealedTff7b72<Te6edf3ChannelsRouteTff7b72>Tb4b4b4(Tb4b4b4)
Te6edf3subclassesOfSealedTff7b72<Te6edf3ConnectionsRouteTff7b72>Tb4b4b4(Tb4b4b4)
Te6edf3subclassesOfSealedTff7b72<Te6edf3ContactsRouteTff7b72>Tb4b4b4(Tb4b4b4)
Te6edf3subclassesOfSealedTff7b72<Te6edf3MapRouteTff7b72>Tb4b4b4(Tb4b4b4)
Te6edf3subclassesOfSealedTff7b72<Te6edf3NodesRouteTff7b72>Tb4b4b4(Tb4b4b4)
Te6edf3subclassesOfSealedTff7b72<Te6edf3NodeDetailRouteTff7b72>Tb4b4b4(Tb4b4b4)
Te6edf3subclassesOfSealedTff7b72<Te6edf3SettingsRouteTff7b72>Tb4b4b4(Tb4b4b4)
Te6edf3subclassesOfSealedTff7b72<Te6edf3FirmwareRouteTff7b72>Tb4b4b4(Tb4b4b4)
Te6edf3subclassesOfSealedTff7b72<Te6edf3WifiProvisionRouteTff7b72>Tb4b4b4(Tb4b4b4)
Tb4b4b4}
Tb4b4b4}
Tb4b4b4}

Served by rngit 1.5.0 - Generated in 0.04s